package com.buaa.aimall.userModule.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@TableName(value = "users")
@Data
public class UserEntity {
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;

    @TableField("email")
    private String email;

    @TableField("balance")
    private Integer balance;

    @TableField("income")
    private Integer income;

    @TableField("name")
    private String name;

    @TableField("idcard")
    private String idcard;

    @TableField("buaa_oauth_token")
    private String buaaOauthToken;
}
